home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Link.n < prev    next >
Text File  |  1993-06-14  |  475b  |  41 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10.  
  11. #if defined(NO_INLINES) && !defined(LINK_CC_)
  12.  
  13. #else
  14.  
  15. #ifndef NO_INLINES
  16. #  define INLINEF inline
  17. #else
  18. #  define INLINEF
  19. #endif
  20.  
  21. INLINEF Link* Link::Pred () const
  22. {
  23.     return prev;
  24. }
  25.  
  26. INLINEF Link* Link::Suc () const
  27. {
  28.     return next;
  29. }
  30.  
  31. INLINEF void Link::Precede (Head* list)
  32. {
  33.     this->InTo(list);
  34. }
  35.  
  36. #ifdef INLINEF
  37. #  undef INLINEF
  38. #endif
  39.  
  40. #endif
  41.